Any suggestions for calculating amount out offchain? The idea is that we will query some on-chain information (like curve, pool, etc,...), then use them as input data to calculate offchain