Skip to content

curveresearch/oracle_manipulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Initial code to examine effects of trade size on various cryptoswap oracles. Very much a work in progress.

Depends only on curvesim and its dependencies

Example:

import curvesim, oracle_manipulation
pool = curvesim.pool.get_sim_pool("0xf5f5b97624542d72a9e06f04804bf81baa15e2b4", balanced=False)
dfs, outputs = oracle_manipulation.run_all_trade_pairs(pool)
chart = oracle_manipulation.plot(dfs, "tricryptoUSDT.html")

Limitations

  • only works for 3 coin pools for now
  • will print "Unsafe value for y" on each iteration as it reaches the max trade size (safe to ignore)

About

Examines the effects of large trades on cryptoswap oracles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages