Skip to content
프로젝트

소개

Just the essentials done well

학습 및 교육

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Atomic Arbitrage

Atomic Arbitrage is a base example of a bare implementation of an arbitrage bot. Written in Go based off an old example bot. Starting with UNI V2 arbs before moving onto UNI v3, Balancer, and Curve arbitrage.

Contributing?

Just tackle a To-Do task and submit a PR, ideally once done I can make some Github actions to test speed and determine if PRs actually improve efficiency. Also if you have design/architecture improvements file and issue and I will start on them, not sure how to make public right away so starting with a conceptually simple bot then gradually evolve it over time.

To - do

  • - Re-write flash-swap to Yul+ instead of Solidity
  • - Build out an example test environment (hopefully in Foundry cramming in Yul+ via FFI and yul-log)
  • - Clean up code structure
  • - Move off hardcoded pairs from json, use event listening with Geth to reconstruct an in-memory db of all pairs for each exchange. (Recreate from factory logs at cold boot) (credit @mempooler)
  • - GraphQL interface instead of relying on JSON-RPC (although this can also be skipped by just moving straight to Geth)
  • - Fuzzing Tests with Go 1.18beta2
  • - Better transaction signing and construction (ie call uniswap call() first then direct it to the arb contract rather than having a contract call it first)
  • - e2e tests and timing
  • - Detect more swaps than just swapExactTokensForTokens (or just use a better method to detect arb opportunities, and dive into the mempool)
  • - Organize Code from flat repo, and fix a lot of code-style issues (credit @0xKitsune)
  • - Goroutine stuff
  • - Remove interfaces in favor of generics where possible? (I think Generics are faster?)
  • - Transactions is also mostly unfinished and un optimized in any way
  • - Has also occured to me file names may need to be changed to be more inline with what they actually do

Go Notes

Some good talks if you are bored, if you want to learn how to make your Go code run faster.

관련 프로젝트 살펴보기

불러오는 중…