DeFi
DeFi Dynamics. Exploring the Future of Finance.
OpenCover pfp
1 reply
0 recast
0 reaction

↑langchain pfp
0 reply
0 recast
0 reaction

Monteluna pfp
I have mentioned previously that I had a bunch of Uniswap code in Mathematica for predicting and analyzing my own LP positions. Typically I recommend revert.finance for normal people for this, since you get insights on position state. The general problem is revert doesn't have good simulators for future prices, or trying to figure out some basic questions: 1. How much of ETH and USDC do I need to enter this pool? 2. What will be my position's value be if the price of ETH moves from $X -> $Y? 3. What would the total reserves of a pool be if the price of ETH moves from $X -> $Y? I used Wolfram Mathematica because it's a bit easier to use solvers in that language since it's symbolic. I am now rewriting these solvers into Julia since it's a more approachable language due to being a LISP variant and it has some high quality numerical computing advantages. Feel free to try it out and use it as I expand it's feature set. Currently I have added solvers for Uniswap V2 but will add Concentrated Liquidity soon. Since you have solvers that can predict future reserves, you can do interesting things like plot your position's dollar value over time, prove if your hedging strategy works, or just tell how much in each token you need to enter a brand new position. FAQ: 1. Why not python? Python isn't a lisp and it's hard to define the Uniswap math in it. It would require too much leg work, and I'm also not that impressed with Python as a language. 2. How do I use it? Download julia and RTFM. 3. Can you show me how to use it? Do you have a budget for my hourly rate? 4. Can you make changes? No. 5. Can I help contribute to this project? No. It's my pet project. You can fork it and add to it yourself if you want. nfa dyor! https://github.com/jfarid27/UniswapTools.jl
4 replies
2 recasts
14 reactions

OpenCover pfp
1 reply
0 recast
0 reaction

OpenCover pfp
0 reply
1 recast
0 reaction

Monteluna pfp
1 reply
1 recast
0 reaction

↑langchain pfp
0 reply
0 recast
0 reaction

↑langchain pfp
0 reply
0 recast
6 reactions

OpenCover pfp
2 replies
1 recast
1 reaction

OpenCover pfp
1 reply
0 recast
0 reaction

Reserve pfp
0 reply
1 recast
2 reactions

TheModestThief pfp
1 reply
0 recast
4 reactions

OpenCover pfp
0 reply
1 recast
2 reactions

Mike Krupin pfp
0 reply
0 recast
1 reaction

OpenCover pfp
1 reply
0 recast
1 reaction