  We prove a genus formula for modular curves of $D$-elliptic sheaves. We use
this formula to show that the reductions of modular curves of $D$-elliptic
sheaves attain the Drinfeld-Vladut bound as the degree of the discriminant of
$D$ tends to infinity.
