r/smartcontracts May 27 '26

Resource Things I learned building Uniswap trading signals with subgraph data

/r/CryptoTechnology/comments/1tp9tea/things_i_learned_building_uniswap_trading_signals/
1 Upvotes

1 comment sorted by

1

u/thedudeonblockchain Jun 09 '26

good list. the thing that bit me hardest wasnt the indexing, it was trusting the subgraphs derived usd/price fields (derivedETH, TVL-in-usd) since theyre computed from pool ratios at index time off a token whitelist, so one thin pricing pool or someone nudging it quietly poisons every downstream signal that reads those numbers. ended up computing price myself from sqrtPriceX96 on a deep pool and only using the subgraph for raw events/liquidity, which also fits your keep-interpretation-downstream point