Crypto & DeFi

Degen Code

By BowTiedDevil on Substack · 7K+ subscribers · 1 free and 11 paid among the latest 12.

A deeply autistic exploration of Ethereum and building automated trading bots with Python, Rust, and AI.

Visit Degen Code ↗

Latest posts

12
Degen Code BowTiedDevil
Crypto

How To Improve Performance With Telemetry

Performance matters and I’m not afraid to say it! degenbot was a pure Python package for many years. I love Python but it’s not a high performance language, so I mostly focused on speeding up the slowest parts where I could while…

Read
Degen Code BowTiedDevil
Crypto

Rewrite It in Rust: Simulation

The most painful part of high-volume searching is simulation. Before every value capture can occur, you must run it against your best view of the chain state. The boundary between your efficient searcher and the generalized…

Read
Degen Code BowTiedDevil
Crypto

Rewrite It in Rust: Pool State & Path Solver

This entry builds on the theoretical concepts explored in the Numerical Optimization series. If you didn’t read those, shame on you! But for your convenience, here they are again: Liquidity Pool Structure A given liquidity pool…

Read
Degen Code BowTiedDevil
Crypto

Rewrite It in Rust: RPC Provider

We have already established a long term goal: build a Rust core driven by a thin Python shell. Communication with the blockchain is done via Remote Procedure Call (RPC) exposed by a node directly, or through some gateway service.…

Free Read
Degen Code BowTiedDevil
Crypto

Rewrite It in Rust: Pathfinding

I love graphs and I’m not afraid to admit it. They are an ideal data structure for arbitrage pathfinding and optimization for certain multi-market problems. I primarily use NetworkX for working with graphs. It’s easy to use, but…

Read
Degen Code BowTiedDevil
Crypto

Rewrite It in Rust: Bot Module

The architectural rewrite has allowed me to revisit some design decisions that have been bugging me. I started developing degenbot to speed up my day-to-day bot building. Those bots were focused on calculating cyclic arbitrage…

Read
Degen Code BowTiedDevil
Crypto

Rewrite It in Rust: Architecture

Last year I wrote a short Rust series (Parts I , II , III , IV ) surveying the basics of the language. I was particularly excited about the ability to integrate Rust directly into degenbot , which was pure Python at its core and…

Read
Degen Code BowTiedDevil
Crypto

Optimizing Smart Contracts With Autoresearch

I’ve been using AutoResearch (AR) to improve smart contracts. I don’t see AR discussed often enough, and I think it suffers from a branding problem. The name suggests it is a tool for finding obscure info, digging into scientific…

Read