So it's said that dropping off a pokemon at a gym will grant the player pokecoins. You can get 10 pokecoins per 21 hours per gym up to some maximum.
Does this mean I go to a gym, drop off a pokemon, and then I can immediately claim my 10 pokecoins? Or does the pokemon have to defend a gym for X minutes, or beat Y challengers first?