Content pfp
Content
@
0 reply
0 recast
2 reactions

GIGAMΞSH pfp
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 pfp
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

Stas pfp
Stas
@stas
Check how we did it at @velodrome / @aerodrome This Sugar helper exposes library functions to return amounts: https://github.com/velodrome-finance/slipstream/blob/main/contracts/periphery/SugarHelper.sol#L131-L138
1 reply
0 recast
3 reactions

Guil 🐘 🎩   pfp
Guil 🐘 🎩
@guillaumecornet
222 $farther
0 reply
0 recast
0 reaction