Sup HN!
I wrote this blog post showing different tricks to access smart contracts data. It shows how to make a simple read, read private variables, and simulate transactions in the past and in the current block. I hope someone here finds it useful!
You can use these tricks to audit the APY that you see in some front ends. That's what we do to track vaults at defireturns.com.
See ya!