I ask because if I use EtherScan to look at my wallet's contents, I used to be able to see how much sOHM I had -- but now, since I've upgraded to the v2 protocol, it's expressed in gOHM - which stays the same - and you need the Current Index to calculate how many sOHM that is. There doesn't seem to be a way to read it from EtherScan's API: is there a call I can make to something to get the information so I can do the calculation?
I can see how to do it in the source code on GitHub (the "frontend" one), but the functionality requires an object called OlympusStakingv2__factory, which, I imagine, is what actually makes the server connection: it refers to it in an import:
import { OlympusStakingv2, OlympusStakingv2__factory, SOhmv2 } from "../typechain";
but there is no file in the typechain folder in the repository which contains that object. So I'm missing something somewhere.
Thanks.