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?
I am currently also trying to integrate crocswap off-chain on our smart order router. And this capability mentioned above would be greatly appreciated.
I tried to wrote
CrocImpact
(using typescript) to calculatebaseFlow & quoteFlow
offchain but stuck atreadSlot
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?