Skip to main content
11 events
when toggle format what by license comment
May 13, 2023 at 19:28 history protected CommunityBot
May 13, 2023 at 19:26 answer added wafcio timeline score: 0
Feb 10, 2023 at 22:58 answer added Crypto_Rachel timeline score: 1
Nov 9, 2022 at 8:57 answer added leafyoung timeline score: 0
Sep 6, 2021 at 22:46 answer added user81317 timeline score: 2
Jul 16, 2021 at 10:11 answer added Duduche timeline score: 2
Jul 15, 2021 at 0:00 comment added Travis M @vlad.london's method worked for me. The diving by 1e6 part depends on the decimals of the token in question. Many tokens are 18 decimals, so you would do 1e18 then I believe.
Jul 6, 2021 at 23:42 comment added PascalVKooten I am not able to reproduce... could you write it down as a single equation perhaps :)? It would make a good answer to your question. In my case it just doesn't seem to line up with the right numbers no matter how I try.
Jun 15, 2021 at 17:41 comment added vlad.london I think I have figured that out. If the price is inside your position range you need to take feeGrowthGlobal0X128 and subtract the following 3 values: 1) feeGrowthOutside0X128 returned by ticks() function for the lower tick of your position 2) feeGrowthOutside0X128 returned by ticks() function for the upper tick of your position 3) feeGrowthInside0LastX128 returned by positions() for your position You need to divide each fee growth number by 2**128, and multiply the result of the subtraction above by liquidity and then by 1e6 (no idea why TBH). You get the actual fees in token0 earned.
Jun 15, 2021 at 16:17 review First posts
Jun 16, 2021 at 3:36
Jun 15, 2021 at 16:12 history asked vlad.london CC BY-SA 4.0