Bancor
Code corresponding to my analysis of Bancor front-running
Install / Use
/learn @bogatyy/BancorREADME
Front-running Bancor
This code is supplementary to the blog post Front-running Bancor in 150 lines of Python with Ethereum API, which expands on the research done in Cornell and implements a front-running attack as a mere full node (no need to be a miner).
Usage
Install and run the geth Ethereum client first:
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository -y ppa:ethereum/ethereum
$ sudo apt-get update
$ sudo apt-get install ethereum
$ geth --rpc --unlock 0xYOUR_ACCOUNT_ADDRESS
......wait for the chain to sync........
The front-runner code automatically attaches to a running geth client:
$ sudo pip install requests
$ python one_frontrun.py
Contact
For any bugs in the code, raise a GitHub issue or send me a pull request. For more general discussions, feel free to send me an email at ivanbogatyy@gmail.com.
Related Skills
node-connect
340.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
340.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.1kCommit, push, and open a PR
