I tried to wrote CrocImpact (using typescript) to calculate baseFlow & quoteFlow offchain but stuck at readSlot method because we have to read onchain data in here.
The idea is that I want to query some on-chain information (like curve, pool, etc,...), then use them as input data to calculate offchain.
Any suggestions for calculating amount out offchain?