As title says, maybe you didn't notice but attackers who pushed the ram don't get any gold for it if the gate is opened when it reaches it. It's a very annoying bug especially when a few defenders use this exploit by waiting behind the gate to open it a few seconds before the ram arrives