I think you should get a full refund if you cancel troops before they are built, I built 20 thieves and then realised that I had enough for a level 5 gold storage so I canceled the troops but got less of my grog back which meant I couldn't build the storage, it was very frustrating