num calculateLiquidity(num amountReal, num price, bool isBase) { if (isBase) { return amountReal * sqrt(price); } else { return amountReal / sqrt(price); } }