4,656,810
blocks/year ~= 12,758
blocks per day.12,758
blocks to get 24h volume. The result is then multiplied by the amount of fees that go to LPs (.2% for xyk, .025% for stableswap) to get 24h fees, then multiply by 365 and divide by the pool liquidity to get an APR value.