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

feat: avoiding posting during price surges #179

Open
wants to merge 138 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 134 commits
Commits
Show all changes
138 commits
Select commit Hold shift + click to select a range
e2a6616
historical fee service: working on calculating SMAs
segfault-magnet Dec 12, 2024
8eb3243
starting to add decision logic based on sma price
segfault-magnet Dec 14, 2024
f7cf478
cleanup tests
segfault-magnet Dec 14, 2024
b3ec73b
shorten tests
segfault-magnet Dec 14, 2024
6599fcf
parameterized tests
segfault-magnet Dec 14, 2024
281086b
add more tests
segfault-magnet Dec 14, 2024
8b74db3
more edge cases
segfault-magnet Dec 14, 2024
cc451cf
use sequential fees struct, rename price service to fee analytics
segfault-magnet Dec 14, 2024
fea814a
add activation fee threshold
segfault-magnet Dec 14, 2024
3bfcca0
add comparison strategy
segfault-magnet Dec 14, 2024
7e5769f
add tests for treshold strategy
segfault-magnet Dec 14, 2024
855ac26
l1 adapter for historical fees, about to test out algo on historical
segfault-magnet Dec 14, 2024
c2f1601
historical testing of algo
segfault-magnet Dec 14, 2024
c732cd7
adding in the fee acceptance scaling for being late with posting
segfault-magnet Dec 15, 2024
3a25064
checked tests validity, tweaked values to better represent the test
segfault-magnet Dec 15, 2024
c1d4824
analyzing algo config
segfault-magnet Dec 15, 2024
6d74ce3
committer compiles, unit tests fixed
segfault-magnet Dec 15, 2024
f7b44cf
tracks fragment age, tests fixed
segfault-magnet Dec 16, 2024
ac72a02
pull up the config to state committer level so it can be exported out
segfault-magnet Dec 16, 2024
b8d6631
added tests to state committer showing that the price algo is consulted
segfault-magnet Dec 16, 2024
fb6c016
all tests passing, including e2e
segfault-magnet Dec 16, 2024
c7aa8fa
cleanup
segfault-magnet Dec 16, 2024
79ee936
add tests for max fee calculation
segfault-magnet Dec 16, 2024
d4785a0
some todos
segfault-magnet Dec 16, 2024
7326055
add tests for converting fees
segfault-magnet Dec 17, 2024
c123862
move fee conversion to separate mod
segfault-magnet Dec 17, 2024
4506b80
removing fee analytics as a service, making it a helper
segfault-magnet Dec 17, 2024
4c42cb7
add check whether provider reported all requested fees
segfault-magnet Dec 17, 2024
61c6fd3
add caching and tests
segfault-magnet Dec 17, 2024
8b6993b
changed the last n block calculation, need to fix tests
segfault-magnet Dec 17, 2024
94c8979
fixed tests
segfault-magnet Dec 18, 2024
004be10
validate percentages
segfault-magnet Dec 18, 2024
963422e
add capping for discount percentage at 100%
segfault-magnet Dec 18, 2024
80b9cef
if too far back, makes decision even with a faulty fee provider
segfault-magnet Dec 18, 2024
7fa623d
add logging, remove print statements
segfault-magnet Dec 18, 2024
3ab2e93
added fees at height
segfault-magnet Dec 18, 2024
62f6f38
moving fee tracking into its own service due to a need for regular
segfault-magnet Dec 18, 2024
bfc5eb0
add helper to lessen test boilerplate
segfault-magnet Dec 18, 2024
d39838e
remove context
segfault-magnet Dec 18, 2024
f908f32
cargo fix
segfault-magnet Dec 18, 2024
d87d5cb
add fee tracker to be run periodically
segfault-magnet Dec 18, 2024
ebb8464
revert debug logs
segfault-magnet Dec 18, 2024
c34af7e
Merge remote-tracking branch 'origin/master' into feat/price_optimizi…
segfault-magnet Dec 18, 2024
d8d39de
Merge remote-tracking branch 'origin/master' into feat/price_optimizi…
segfault-magnet Dec 19, 2024
c8a7ca7
enable cache
segfault-magnet Dec 19, 2024
c1a9ea3
add more logging to debug
segfault-magnet Dec 19, 2024
173a269
fix bug, minimum not maximum starting height when calculating l2 blocks
segfault-magnet Dec 23, 2024
3a554e4
mult reward by INTRINSIC_GAS
segfault-magnet Dec 23, 2024
1131d93
incorporate fee check into should submit_fragments
segfault-magnet Dec 23, 2024
eeb87ae
WIP, saving progress against powerloss
segfault-magnet Dec 24, 2024
3484efc
have metrics even when fragments should not be submitted
segfault-magnet Dec 24, 2024
02e308d
Merge remote-tracking branch 'origin/master' into feat/price_optimizi…
segfault-magnet Dec 24, 2024
7795986
add todo
segfault-magnet Dec 24, 2024
0b0bea7
fix typo
segfault-magnet Dec 24, 2024
466db65
fees cannot be zero
segfault-magnet Dec 25, 2024
6df8eff
add test for when mean equals 0 to be rounded up to 1
segfault-magnet Dec 25, 2024
5b2b35d
cleanup
segfault-magnet Dec 25, 2024
eeda63c
merge imports
segfault-magnet Dec 25, 2024
7a62d4b
Merge remote-tracking branch 'origin/master' into feat/price_optimizi…
segfault-magnet Dec 26, 2024
dde123b
separate algo from fee tracker
segfault-magnet Dec 26, 2024
dbfe64d
rename and cleanup imports
segfault-magnet Dec 26, 2024
d92f881
removed fee analytics, merged with historical_fees and added a separate
segfault-magnet Dec 26, 2024
503cd0e
move state committer port and service to separate file
segfault-magnet Dec 26, 2024
20787e9
fee algo separated into module
segfault-magnet Dec 26, 2024
0639c02
finish removing NonZeroU128 fees
segfault-magnet Dec 26, 2024
5ce370d
simulation progressing
segfault-magnet Dec 30, 2024
6529d41
can plot current price
segfault-magnet Dec 30, 2024
23d9ef0
can simulate algo params
segfault-magnet Dec 30, 2024
aefe371
change the reported statistics
segfault-magnet Dec 31, 2024
43813fe
add get block time
segfault-magnet Dec 31, 2024
95a2988
block time approximated
segfault-magnet Dec 31, 2024
27c3b36
time x axis working correctly
segfault-magnet Dec 31, 2024
871d981
refactoring
segfault-magnet Dec 31, 2024
0600329
add some bootstrap
segfault-magnet Dec 31, 2024
6b157f5
switch from percentages to multipliers for max fee
segfault-magnet Jan 1, 2025
bd39aaf
fix start_max_fee_multiplier and end_max_fee_multiplier in fee
segfault-magnet Jan 1, 2025
7bb63c6
current height to be fetched on first request
segfault-magnet Jan 1, 2025
1dbc5bf
make fields mandatory, fix graceful shutdown
segfault-magnet Jan 1, 2025
e873585
move to actix to lessen deps
segfault-magnet Jan 1, 2025
d15c172
remove deps
segfault-magnet Jan 1, 2025
a25c85c
rename title
segfault-magnet Jan 2, 2025
c976116
remove plotters
segfault-magnet Jan 2, 2025
a5cc78b
update readme
segfault-magnet Jan 2, 2025
cea255e
readme changes
segfault-magnet Jan 2, 2025
82f04a7
move fee algo creation to main Config
segfault-magnet Jan 2, 2025
5d0e22d
cleanup
segfault-magnet Jan 2, 2025
6ca1929
enable logs whole stack
segfault-magnet Jan 2, 2025
958a32e
update cargo toml for fee simulator
segfault-magnet Jan 2, 2025
0b82b3a
cleanup handlers
segfault-magnet Jan 2, 2025
48e3386
move to streams
segfault-magnet Jan 2, 2025
c52573b
historical fees to be just a tracker, api + sequeantial fees .mean() to
segfault-magnet Jan 2, 2025
12ce849
reformat
segfault-magnet Jan 2, 2025
4bb5bc4
improve cache with range fn
segfault-magnet Jan 2, 2025
fa5f34e
simplified cache, edge cases solved
segfault-magnet Jan 3, 2025
ab4bf51
fix gap detection
segfault-magnet Jan 3, 2025
93c457a
cleanup gap detection
segfault-magnet Jan 3, 2025
faeee9e
fix tests
segfault-magnet Jan 3, 2025
cb5e244
reformat
segfault-magnet Jan 3, 2025
4cc45bc
separating out logic
segfault-magnet Jan 3, 2025
72e841c
refactor handlers
segfault-magnet Jan 3, 2025
9320d1c
add sha checks to html/js deps
segfault-magnet Jan 3, 2025
448020b
fix number of blobs
segfault-magnet Jan 3, 2025
6c8389a
remove comments
segfault-magnet Jan 3, 2025
fffef8c
remove more comments
segfault-magnet Jan 3, 2025
b512021
remove cache api builder
segfault-magnet Jan 3, 2025
db105e5
stream approach to fee collection, fix num blobs on fee simulator FE
segfault-magnet Jan 4, 2025
befce33
unnecessary clone
segfault-magnet Jan 4, 2025
4dda61d
clippy nits
segfault-magnet Jan 4, 2025
eb2a8ea
extract cache into separate module away from the port
segfault-magnet Jan 4, 2025
82a57fe
group imports
segfault-magnet Jan 4, 2025
c9920f5
fix query for the case of an empty table
segfault-magnet Jan 4, 2025
afb7d29
remove unused deps
segfault-magnet Jan 4, 2025
ea3bcef
add missing then
segfault-magnet Jan 4, 2025
8486c75
use gwt terminology
segfault-magnet Jan 4, 2025
65f2797
remove redundant tests
segfault-magnet Jan 4, 2025
2843c0f
rename block fees
segfault-magnet Jan 4, 2025
8a2a254
separate testing api impls
segfault-magnet Jan 4, 2025
71d0631
move sma periods next to the algo impl
segfault-magnet Jan 4, 2025
dff1c49
move fees to common mod
segfault-magnet Jan 4, 2025
e7af0e7
inline service file
segfault-magnet Jan 4, 2025
44dfd77
remove dead code
segfault-magnet Jan 4, 2025
ed17615
move interesting logic to top of file
segfault-magnet Jan 4, 2025
40be8ec
call all test modules 'tests'
segfault-magnet Jan 4, 2025
9939f82
remove redundant comments
segfault-magnet Jan 4, 2025
442db51
cleanup parameterized tests
segfault-magnet Jan 4, 2025
be3d26b
add tests for l2 blocks behind
segfault-magnet Jan 4, 2025
fa8c6cc
remove empty file
segfault-magnet Jan 4, 2025
d94b1c4
cleanup tests, shorten setup
segfault-magnet Jan 4, 2025
04b5954
setup more to the point
segfault-magnet Jan 4, 2025
474e58c
shorten setup of yet another test
segfault-magnet Jan 4, 2025
eb5aaf1
tested out fresh simulation start, works great
segfault-magnet Jan 4, 2025
5934de5
group imports
segfault-magnet Jan 4, 2025
3396afa
Merge branch 'master' into feat/price_optimizing_algo
segfault-magnet Jan 6, 2025
0268d13
Merge branch 'master' into feat/price_optimizing_algo
MujkicA Jan 9, 2025
7bc958d
bump default to 900
segfault-magnet Jan 9, 2025
7337407
Merge branch 'feat/price_optimizing_algo' of github.com:FuelLabs/fuel…
segfault-magnet Jan 9, 2025
936b982
remove metrics that can be calculated by prometheus
segfault-magnet Jan 9, 2025
e9af0ac
Merge remote-tracking branch 'origin/master' into feat/price_optimizi…
segfault-magnet Jan 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

67 changes: 60 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ resolver = "2"
members = [
"committer",
"e2e",
"fee_algo_simulation",
"packages/adapters/clock",
"packages/adapters/eth",
"packages/adapters/fuel",
Expand Down Expand Up @@ -38,6 +39,7 @@ actix-web = { version = "4", default-features = false }
bitvec = { version = "1.0", default-features = false }
bytesize = { version = "1.3", default-features = false }
alloy = { version = "0.3.6", default-features = false }
xdg = { version = "2.5", default-features = false }
proptest = { version = "1.0", default-features = false }
rayon = { version = "1.10", default-features = false }
num_cpus = { version = "1.16", default-features = false }
Expand Down
Loading
Loading