As you can see i attacked 32/32 times and i only got 86.966 “Units” (for the first Place you need 87.000 units).
44 Units might not be very much but this bug create the diffence between (3k uber pearls, 9 golden chests and 5 Ninjas) and (2.250 uber pearls, 6 golden and 3 blue chests and 4 Ninjas).
I dont know if the devs know this “bug” or not. But I guess it shouldnt be like this in the game. The first time i notice this bug was 2 or 3 months ago.
As you can see there are many players that might have the same problem.
It might be a solution to set the Units to 87.000 if you solve the last stage.