Skip to content

fmrmf/sudo-ape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

jpeg charts for sudoooo swap

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published