Skip to content

Latest commit

 

History

History
58 lines (37 loc) · 2.14 KB

README.md

File metadata and controls

58 lines (37 loc) · 2.14 KB

sudo-ape

Charts for sudooooo swap using ApeWorX

Setup

Most of the sudoswap pair contracts LSSVMPair.sol are not verified on Etherscan, so I went for a manual workaround by compiling locally in this project. This allows using ApeWorX's out-of-the-box Contract functionality to query for the events we care about.

Relevant needed contracts are in the contracts/ folder. Simply

ape compile

and the notebook should run fine. Then,

ape notebook

Environment

Example .env.example file included, which assumes using Alchemy as the network provider:

$ export WEB3_ALCHEMY_PROJECT_ID=MY_ALCHEMY_PROJECT_ID
$ export ETHERSCAN_TOKEN=MY_ETHERSCAN_TOKEN

Substitute WEB3_ALCHEMY_PROJECT_ID for another environment variable if using a different provider (e.g. Infura).

TODOs

For a given collection address, plot over all existing pools:

  • prices and volume
  • liquidity
  • % slippage (curve) and fee metrics (or normalize by these)
  • arbitrage opportunities (price differences between pools)