Funding is the difference between the futures price and the spot price. I short means selling high and buying back low. The two prices differ, so the short pays the long.