The fees collected by the pool in the last 24 hours are extrapolated to a 365-day year, then divided by total liquidity in the pool yields the APY from fees.