Content
@
0 reply
0 recast
2 reactions
GIGAMΞSH
@gigamesh
Anyone know how to programmatically get the token amounts from Uniswap positions? I thought this was on the right track but the output is wrong: https://gist.github.com/gigamesh/a3913588ff950b940756491a8dfadd72 Following this as a guide: https://docs.uniswap.org/contracts/v4/concepts/managing-positions
3 replies
4 recasts
28 reactions
GIGAMΞSH
@gigamesh
For anyone who ever lands here, the JavaScript code to do it is in this blog post. S/o @we for the link. https://blog.uniswap.org/uniswap-v3-math-primer-2
0 reply
0 recast
6 reactions