Skip to content

Instantly share code, notes, and snippets.

@zigengZ
zigengZ / arbitrage.py
Created August 31, 2025 16:03 — forked from noxx3xxon/arbitrage.py
CFMM Routing Arbitrage Example
import numpy as np
import cvxpy as cp
import itertools
# Problem data
global_indices = list(range(4))
# 0 = TOKEN-0
# 1 = TOKEN-1
# 2 = TOKEN-2