Skip to content

Instantly share code, notes, and snippets.

View DanielVF's full-sized avatar

Daniel Von Fange DanielVF

View GitHub Profile
@DanielVF
DanielVF / amo_balancing.ipynb
Last active September 7, 2023 12:34
AMO Balancing Fork Tests
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@DanielVF
DanielVF / amm_strat_report.ipynb
Created September 11, 2023 13:50
Balancer Reth Eth
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@DanielVF
DanielVF / EulerSwap Printable.pdf
Last active June 2, 2025 17:09
EulerSwap Codebase
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env python3
"""
dedup.py — Deduplicate files across one or more directories.
Usage:
python dedup.py [--dry-run] <dir1> [dir2] ...
Duplicate files (same length + same SHA-256) are moved into a DUPLICATE/
subfolder inside their original parent directory. The "best" copy (shortest
filename, then shortest directory path, then alphabetical full path) is kept

Gas pricing

Here’s a chart I made of the marginal cost for one million gas on Ethereum since base fees were introduced. Log10-scaled.

The quantized steps are a brilliant hack. Nice work!

The primary effect of this EIP is to allow computation/communication gas to become cheaper in dollar terms and as a result unlocking more applications that are both storage-light and infeasible at current gas prices.