Skip to content

Instantly share code, notes, and snippets.

View burtrico's full-sized avatar

Burtrico burtrico

  • USA
View GitHub Profile
@burtrico
burtrico / arbitrage.py
Created September 5, 2022 04:40 — 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